<?php
/**
 * Created by PhpStorm.
 * User: Argon
 * Date: 2016/12/14
 * Time: 16:23
 */

function listError($model){
    $errors=$model->getError();
    $data = "<ul>";
    foreach ($errors as $error){
        $data .= "<li>".$error."</li>";
    }
    $data .= "</ul>";
    return $data;

}